package org.jeecg.modules.rental.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description: 景点线路规划
 * @Author: sean
 * @Date:   2024-07-13
 * @Version: V1.0
 */
@Data
@TableName("rental_scenic_spot_route")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="rental_scenic_spot_route对象", description="景点线路规划")
public class RentalScenicSpotRoute implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
	/**线路名称*/
	@Excel(name = "线路名称", width = 15)
    @ApiModelProperty(value = "线路名称")
    private String name;
	/**起点维度*/
	@Excel(name = "起点景点", width = 15)
    @ApiModelProperty(value = "起点景点")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long startSpotId;
    @TableField(exist = false)
    private String startSpotName;
	/**终点维度*/
	@Excel(name = "终点景点", width = 15)
    @ApiModelProperty(value = "终点景点")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long endSpotId;
    @TableField(exist = false)
    private String endSpotName;
	/**途径景点*/
	@Excel(name = "途径景点", width = 15)
    @ApiModelProperty(value = "途径景点")
    private String spotIds;
    /**途径景点*/
    @Excel(name = "途径景点", width = 15)
    @ApiModelProperty(value = "途径景点")
    private String spotNames;
    /**途径景点*/
    @Excel(name = "途径景点", width = 15)
    @ApiModelProperty(value = "途径景点")
    @TableField(exist = false)
    private List<String> spotIdList;
	/**规划线路*/
	@Excel(name = "规划线路", width = 15)
    @ApiModelProperty(value = "规划线路")
    private String polyline;
	/**简介*/
	@Excel(name = "简介", width = 15)
    @ApiModelProperty(value = "简介")
    private String intro;
    /**运营商名称*/
    @ApiModelProperty(value = "运营商名称")
    private String sysOrgCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
	/**是否删除（0：否、1：是）*/
	@Excel(name = "是否删除（0：否、1：是）", width = 15)
    @ApiModelProperty(value = "是否删除（0：否、1：是）")
    @TableLogic(value="0", delval = "1")
    private String isDelete;
}
